//
// GET

import { http } from '@/utils/http'
/**
 * 获取微信支付参数
 * @param data orderId订单id
 * @returns
 */
// /pay/wxPay/miniPay
export const getPayWxPayMiniPayAPI = (data: { orderId: string }) => {
  return http<WechatMiniprogram.RequestPaymentOption>({
    method: 'GET',
    url: '/pay/wxPay/miniPay',
    data,
  })
}

// 模拟支付
export const getPayMockAPI = (data: { orderId: string }) => {
  return http({
    method: 'GET',
    url: '/pay/mock',
    data,
  })
}
